package com.fgba.express.data.mapstruct;

import com.fgba.express.core.mapstruct.BaseStruct;
import com.fgba.express.data.dto.MenuDto;
import com.fgba.express.data.entity.Menu;
import com.fgba.express.data.search.MenuSearch;
import org.mapstruct.Mapper;
import org.mapstruct.NullValuePropertyMappingStrategy;

/**
 * 快递员实体和快递员Model之间的对象转换
 */
@Mapper(componentModel = "spring", nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE)
public interface MenuStruct extends BaseStruct<Menu, MenuDto, MenuSearch> {
    @Override
    Menu entityConvertDto(MenuDto dto);

    @Override
    MenuDto dtoConvertEntity(Menu entity);
}
